import 'package:json_annotation/json_annotation.dart';
part 'company.g.dart';

@JsonSerializable()
class CompanyListResult {
  CompanyListResult();

  List<CompanyResult> data;

  //不同的类使用不同的mixin即可
  factory CompanyListResult.fromJson(Map<String, dynamic> json) =>
      _$CompanyListResultFromJson(json);
  Map<String, dynamic> toJson() => _$CompanyListResultToJson(this);
}

@JsonSerializable()
class CompanyResult {
  CompanyResult();
  int companyId;
  String companyName;
  int isAuthed;
  String linkPhone;
  String linker;

  //不同的类使用不同的mixin即可
  factory CompanyResult.fromJson(Map<String, dynamic> json) =>
      _$CompanyResultFromJson(json);
  Map<String, dynamic> toJson() => _$CompanyResultToJson(this);
}
